/**
 * 用户管理 接口
 * 
 */
import request from '@/utils/request';
let api = {};
//用户列表
api.userList = function (data = {}) {
  return request({
    url: '/admin/member/index',
    method: 'get',
    params: data 
  });
};
//积分列表
api.scoreList = function (data = {}) {
  return request({
    url: '/admin/score/index',
    method: 'get',
    params: data 
  });
};
//积分字典
api.scoreDict = function (data = {}) {
  return request({
    url: '/admin/score/dict',
    method: 'get',
    params: data 
  });
};
//收益明细
api.profitScoreList = function (data = {}) {
  return request({
    url: '/admin/profit/index',
    method: 'get',
    params: data 
  });
};
//收益字典
api.profitScoreDict = function (data = {}) {
  return request({
    url: '/admin/profit/dict',
    method: 'get',
    params: data 
  });
};

// 用户禁/启用  1启用 0禁用
api.setState = function (data = {}) {
 return request({
   url: "/admin/member/setState",
   method: "post",
   data,
 });
};
// 用户字典项目
api.dict = function (data = {}) {
 return request({
   url: "/admin/common/memberDict",
   method: "get",
   data,
 });
};
// 后台设置用户每日收益率
api.setProfit = function (data = {}) {
 return request({
   url: "/admin/member/setProfit",
   method: "post",
   data 
 });
};

// 后台设置用户本金账户不可提现天数
api.setLockedDay = function (data = {}) {
  return request({
    url: "/admin/member/setLockedDay",
    method: "post",
    data 
  });
 };
 
export default api;
